﻿<phone:PhoneApplicationPage 
    x:Class="ProtoType.FormData"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:local="clr-namespace:ProtoType.DataStorage"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="696" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True"
    xmlns:mymap="clr-namespace:Microsoft.Phone.Controls.Maps;assembly=Microsoft.Phone.Controls.Maps" 
    xmlns:amq="clr-namespace:AmCharts.Windows.QuickCharts;assembly=AmCharts.Windows.QuickCharts.WP"
    Loaded="PhoneApplicationPage_Loaded">

    <!--LayoutRoot contains the root grid where all other page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent"  d:DataContext="{Binding Items[0]}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="24,24,0,12">
            <TextBlock x:Name="ApplicationTitle" Text="PROTO TYPE" Style="{StaticResource PhoneTextNormalStyle}"/>
            <TextBlock x:Name="PageTitle" Margin="5,-8,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentGrid" Grid.Row="1" Visibility="Collapsed">
            <ListBox Name="lstData" Background="Black" SelectionChanged="lstData_SelectionChanged" SelectionMode="Single" ItemContainerStyle="{StaticResource SingleLineListBoxItemStyle}">
            </ListBox>
        </Grid>
        <Grid x:Name="ChartGrid" Grid.Row="1" Visibility="Collapsed">

        </Grid>
        <Grid x:Name="MapGrid" Grid.Row="1" Visibility="Collapsed">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <ListBox Height="250"  Grid.Row="1" Name="MapaddData" Background="Black" SelectionMode="Single">
            </ListBox>
        </Grid>
    </Grid>
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton x:Name="appbar_button1" IconUri="Images/appbar.new.rest.png" Text="new" Click="newButton_Click"></shell:ApplicationBarIconButton>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>
</phone:PhoneApplicationPage>




<!--<amq:SerialChart Grid.Row="1" DataSource="{Binding itemlist}" x:Name="chart1"
                         AxisForeground="White"
                         PlotAreaBackground="Black"
                         GridStroke="DarkGray" Height="400">
                    <amq:SerialChart.Graphs>
                        <amq:LineGraph x:Name="lc1" ValueMemberPath="P1000" Foreground="White">
                        </amq:LineGraph>
                    </amq:SerialChart.Graphs>
                </amq:SerialChart>-->


<!--<chartingToolkit:Chart x:Name="MyPie" Title="Writer Assignments" Width="400" >
                    <chartingToolkit:Chart.Axes>
                        <chartingToolkit:CategoryAxis Title="Writer" Orientation="Y" />
                        <chartingToolkit:LinearAxis Title="Types owned"  Orientation="X" Minimum="0" Maximum="300" 
                  Interval="50" ShowGridLines="True"  FontStyle='Italic'/>
                    </chartingToolkit:Chart.Axes>
                    <chartingToolkit:BarSeries Title="# of Types" ItemsSource="{Binding}" IndependentValuePath="Name" 
             DependentValuePath="Types">
                    </chartingToolkit:BarSeries>
                </chartingToolkit:Chart>-->